class AddRelationToRoutes < ActiveRecord::Migration
  def self.up
    add_column :routes, :grade_id, :integer
    add_column :routes, :chain_id, :integer

    add_index :routes, :grade_id
    add_index :routes, :chain_id
  end

  def self.down
    remove_column :routes, :grade_id
    remove_column :routes, :chain_id
  end
end
